import { createRouter, createWebHistory } from 'vue-router';
// import shop from '@/router/shop.routers';
import activity from '@/router/activity.routers';

const routes = [
    // ...shop, // 店铺路由
    ...activity, // 活动推广路由
    {
        path: '/',
        name: 'home',
        component: () => import(/* webpackChunkName: "home" */ '@/views/home.vue')
    },
    {
        path: '/download',
        name: 'download',
        component: () => import(/* webpackChunkName: "download" */ '@/views/download.vue')
    },
    {
        path: '/network',
        name: 'network',
        component: () => import(/* webpackChunkName: "network" */ '@/views/network.vue')
    },
    {
        path: '/:pathMatch(.*)',
        name: '404',
        component: () => import(/* webpackChunkName: "404" */ '@/views/404.vue')
    }
];

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
});

export default router;
